export default {
  sync: {
    setMenuData: (state, menuData) => {
      state.menuData = menuData;
    },
    setTabData: (state, tabData) => {
      state.tabData = tabData;
    },
    setUserInfo: (state, UserInfo) => {
      state.UserInfo = UserInfo;
    },
    setSystemConfig: (state, systemConfig) => {
      state.systemConfig = systemConfig;
    },
    setKeepData: (state, keepData) => {
      state.keepData = keepData;
    }
  },
  async: {
    setMenuData: async ({ commit }, params) => {
      commit("setMenuData", params);
    },
    AsyncSetUserInfo: async ({ commit }, params) => {
      commit("setUserInfo", params);
    }
  }
};
